package com.atguigu.gulimall.auth;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;
/**
 * 核心原理
 *  1）、@EnableRedisHttpSession 导入了RedisHttpSessionConfiguration配置
 *      1、给容器中添加了一个组件
 *          RedisIndexedSessionRepository:redis操作session。session的增删改查封装类
 *      2、SessionRepositoryFilter==》Filter：session存储过滤器  每个请求过来都要经过filter
 */
@EnableRedisHttpSession //整合Redis作为session存储
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients
public class GulimallAuthServerApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimallAuthServerApplication.class, args);
    }

}
